package com.augurit.gzcgwsp.ywcmn.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
 * 地区配置表
 * @author Administrator
 *
 */
@Entity
@Table(name = "BASE_DISTRICT")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class BaseDistrict{
	@Id
    @Column(name = "DISTRICT_ID")
    @SequenceGenerator(name="SEQ_BASE_DISTRICT", sequenceName="SEQ_BASE_DISTRICT", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_BASE_DISTRICT")
	private Long id;
	private String districtCode;
	private String districtName;
	private Long parentDistrictId;
	private int districtLevel;
	private int districtOrder;
	private String districtRemark;

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getDistrictCode() {
		return districtCode;
	}
	public void setDistrictCode(String districtCode) {
		this.districtCode = districtCode;
	}
	public String getDistrictName() {
		return districtName;
	}
	public void setDistrictName(String districtName) {
		this.districtName = districtName;
	}
	public Long getParentDistrictId() {
		return parentDistrictId;
	}
	public void setParentDistrictId(Long parentDistrictId) {
		this.parentDistrictId = parentDistrictId;
	}
	public int getDistrictLevel() {
		return districtLevel;
	}
	public void setDistrictLevel(int districtLevel) {
		this.districtLevel = districtLevel;
	}
	public int getDistrictOrder() {
		return districtOrder;
	}
	public void setDistrictOrder(int districtOrder) {
		this.districtOrder = districtOrder;
	}
	public String getDistrictRemark() {
		return districtRemark;
	}
	public void setDistrictRemark(String districtRemark) {
		this.districtRemark = districtRemark;
	}
	
	
	
	
}
